package main

import (
	"fmt"
	"strconv"
)

func main() {
	var z int
	fmt.Println("int=", z)

	var a int8
	fmt.Println("int8=", a)

	var b int16
	fmt.Println("int16=", b)

	var c int32
	fmt.Println("int32=", c)

	var d int64
	fmt.Println("int64", d)

	var e uint
	fmt.Println("unit=", e)

	var f byte
	fmt.Println("byre", f)

	var g float32
	fmt.Println("float32=", g)

	var h float64
	fmt.Println("float64", h)

	var i = 1234
	var str = fmt.Sprintf("%d", i)
	fmt.Println(str)

	//var abc string="123"
	var a2 = int(i)
	fmt.Printf("a2的类型：%T--%d", a2, a2)

	sprintf := fmt.Sprintf("%v\n", str)
	fmt.Println(sprintf)
	parseInt, err := strconv.ParseInt(str, 10, 64)
	fmt.Printf("%v---%v", parseInt, err)

}
